package com.insurance.modules.claim.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.insurance.modules.claim.entity.ClaimCaseEntity;
import com.insurance.modules.claim.vo.request.CaseCloseRatioReq;
import com.insurance.modules.claim.vo.request.CaseListReq;
import com.insurance.modules.claim.vo.request.CasePayOutRatioReq;
import com.insurance.modules.claim.vo.response.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 案件表
 *
 * @author weiruifeng
 * @email
 * @date 2021-09-24 17:42:47
 */
@Mapper
public interface ClaimCaseDao extends BaseMapper<ClaimCaseEntity> {

    List<CaseListRsp> getCasePageList(Page<CaseListRsp> page, @Param("param") CaseListReq param);

    List<CaseListExportRsp> getCasePageExportList(@Param("param") CaseListReq param);

    Long getMaxCaseNo();

    List<PayOutRatioRsp> queryPayOutRatio(Page<PayOutRatioRsp> page, @Param("param") CasePayOutRatioReq req);

    List<CaseCloseRatioRsp> queryCaseCloseRatio(Page<CaseCloseRatioRsp> page, @Param("param") CaseCloseRatioReq req);

    List<DisabilityLevelReportRsp> queryDisabilityLevelReport(Page<DisabilityLevelReportRsp> page, @Param("param") CaseCloseRatioReq req);

    List<DisabilityLevelReportRsp> querySelfPayAmountReport(Page<DisabilityLevelReportRsp> page, @Param("param") CaseCloseRatioReq req);

    List<PayOutRatioRsp> queryAccidentTypeRatio(Page<PayOutRatioRsp> page, @Param("param") CasePayOutRatioReq req);
}
